define(['config/appregister', "jquery"],function(app){
	app.controller("oneselfCtrl",function($scope, $state){
		var ip = "http://"+allUrl+":8080";
		var u = "/elink_user/api/person/getBasePersonInfoByMine";
		render();
		function render(){
			$.ajax({
				type:"get",
				url:ip+u,
				xhrFields: {
					withCredentials: true
				},
				crossDomain: true,
				success:function(data){
					if(data.code==0){
						$scope.lvname = data.data.levelName;
						$scope.name = data.data.nickname;
						$scope.pic = data.data.logo;
						$scope.zy = data.data.databaseSecondName;
						$scope.fs = data.data.byFollowCount;
						$scope.gz = data.data.followCount;
						$scope.rq = data.data.browseCount;
					}else {
						console.log(data.msg)
					}
				},
				error:function(){
					console.log("获取自己顶部个人信息请求失败")
				}
			});		
		}
		
		
		
	})
})